﻿namespace Joy.Erp.BasicArchives.HttpApi.SimplyClient.Core
{
    public class BasicArchivesConfig
    {
        /// <summary>
        /// Identity Server URL
        /// </summary>
        public string IdentityServerUrl { get; set; }

        /// <summary>
        /// 授权范围
        /// </summary>
        public string Scope { get; set; }

        /// <summary>
        /// 客户端ID
        /// </summary>
        public string ClientId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 接口 Url 
        /// </summary>
        public string ApiUrl { get; set; }

        public BasicArchivesConfig()
        {
        }

        public BasicArchivesConfig(string identityServerUrl, string scope, string clientId, string username, string password, string apiUrl)
        {
            IdentityServerUrl = identityServerUrl;
            Scope = scope;
            ClientId = clientId;
            Username = username;
            Password = password;
            ApiUrl = apiUrl;
        }
    }
}
